<?php
    include_once("../service/userService.php");
    $groupname = "admin";
    $new_id = createGroupDetail($groupname);
    $privileges = getAllPrivilege();
    $privileges_array = array();
    
    while($privilege = mysql_fetch_array($privileges)){
        array_push($privileges_array,$privilege["PRI_ID"]);
    }
    
    assignPermissionOfUserGroup($new_id,$privileges_array);
    $userInfo = getStaffByUsername("admin");
	assignStaffToGroup($userInfo["USER_ID"],$new_id);
?>